package com.mm.fam;

import com.mm.fam.web.netty.NettyServer;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

import java.net.InetSocketAddress;

@EnableSwagger2
@SpringBootApplication
@MapperScan("com.mm.fam.web.mapper")
public class FamWebServerApplication {

    public static void main(String[] args) {
        SpringApplication app  = new SpringApplication(FamWebServerApplication.class);
        app.setBannerMode(Banner.Mode.OFF);
        app.run(args);

        /**
         * netty 简单测试
         * 字符串解码器,   实际应用更改为16进制.
         */
        NettyServer nettyServer = new NettyServer();
        nettyServer.start(new InetSocketAddress("localhost", 8090));

        System.out.println("======================    futures asset management start      ========================");
    }

}
